package com.nzw.pojo.member;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

@Table(name="t_user")
public class User implements Serializable{
	
	private Long id;			//id
	private Long companyId; 	//企业id
	private String realName;	//真实姓名
	private String nick;		//昵称
	private Boolean sex; 		//0_女，1_男
	private String mobile;		//手机
	private Date birthday;		//生日
	private String address;		//地址
	private Date createDate;	//创建时间
	private Date modifyDate;	//修改时间
	//private Date followDate;	//关注时间
	private String head;		//头像
	private String userCode;	//userCode
	private Long memberGroup;	//会员组  1_普通会员
	private String carCode;		//车牌号
	private Integer integral;	//积分
	private String openid;		//openid
	private String recomemindOpenid;	//推荐人id
	private Integer money;		//可用余额
	private Boolean isFollow;	//是否关注
	private Integer monthIntegral;	//一个月的积分总数
	private Integer lastMothIntegral; //上个月的积分总数
	private Boolean scaner;			//扫码
	private Long scanerShopId;		//扫码的商户id
	private Long carTypeId;			//车类型id
	private Boolean spread;			//是否可以地推
	private String spreadNumber;	//地推人数
	private Integer carState;		//专车状态 0_未认证 1_认证中 2_已认证


	@Column(name="recomemindOpenid")
	public String getRecomemindOpenid() {
		return recomemindOpenid;
	}

	public void setRecomemindOpenid(String recomemindOpenid) {
		this.recomemindOpenid = recomemindOpenid;
	}

	@Column(name = "carState")
	public Integer getCarState() {
		return carState;
	}

	public void setCarState(Integer carState) {
		this.carState = carState;
	}

	@Column(name="openid")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	@Column(name="carCode")
	public String getCarCode() {
		return carCode;
	}

	public void setCarCode(String carCode) {
		this.carCode = carCode;
	}

	@Column(name="id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="realName")
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	
	@Column(name="nick")
	public String getNick() {
		return nick;
	}
	
	public void setNick(String nick) {
		this.nick = nick;
	}
	@Column(name="sex")
	public Boolean getSex() {
		return sex;
	}
	
	public void setSex(Boolean sex) {
		this.sex = sex;
	}
	@Column(name="mobile")
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name="birthday")
	public Date getBirthday() {
		return birthday;
	}
	
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	@Column(name="address")
	public String getAddress() {
		return address;
	}
	
	public void setAddress(String address) {
		this.address = address;
	}


	@Column(name="createDate")
	public Date getCreateDate() {
		return createDate;
	}
	
	
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	@Column(name="modifyDate")
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	
	@Column(name="head")
	public String getHead() {
		return head;
	}
	public void setHead(String head) {
		this.head = head;
	}
	
	@Column(name="userCode")
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}


	@Column(name="integral")
	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	@Column(name="companyId")
	public Long getCompanyId() {
		return companyId;
	}

	@Column(name = "money")
	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}


	@Column(name = "memberGroup")
	public Long getMemberGroup() {
		return memberGroup;
	}

	public void setMemberGroup(Long memberGroup) {
		this.memberGroup = memberGroup;
	}

	@Column(name = "isFollow")
	public Boolean getIsFollow() {
		return isFollow;
	}

	public void setIsFollow(Boolean follow) {
		this.isFollow = follow;
	}


	@Column(name = "monthIntegral")
	public Integer getMonthIntegral() {
		return monthIntegral;
	}

	public void setMonthIntegral(Integer monthIntegral) {
		this.monthIntegral = monthIntegral;
	}


	@Column(name = "lastMothIntegral")
	public Integer getLastMothIntegral() {
		return lastMothIntegral;
	}

	public void setLastMothIntegral(Integer lastMothIntegral) {
		this.lastMothIntegral = lastMothIntegral;
	}


	@Column(name = "scaner")
	public Boolean getScaner() {
		return scaner;
	}

	public void setScaner(Boolean scaner) {
		this.scaner = scaner;
	}


	@Column(name = "scanerShopId")
	public Long getScanerShopId() {
		return scanerShopId;
	}

	public void setScanerShopId(Long scanerShopId) {
		this.scanerShopId = scanerShopId;
	}


	@Column(name = "carTypeId")
	public Long getCarTypeId() {
		return carTypeId;
	}

	public void setCarTypeId(Long carTypeId) {
		this.carTypeId = carTypeId;
	}

	@Column(name = "spread")
	public Boolean getSpread() {
		return spread;
	}

	public void setSpread(Boolean spread) {
		this.spread = spread;
	}


	@Column(name = "spreadNumber")
	public String getSpreadNumber() {
		return spreadNumber;
	}

	public void setSpreadNumber(String spreadNumber) {
		this.spreadNumber = spreadNumber;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", companyId=" + companyId +
				", realName='" + realName + '\'' +
				", nick='" + nick + '\'' +
				", sex=" + sex +
				", mobile='" + mobile + '\'' +
				", birthday=" + birthday +
				", address='" + address + '\'' +
				", createDate=" + createDate +
				", modifyDate=" + modifyDate +
				", head='" + head + '\'' +
				", userCode='" + userCode + '\'' +
				", memberGroup=" + memberGroup +
				", carCode='" + carCode + '\'' +
				", integral=" + integral +
				", openid='" + openid + '\'' +
				", money=" + money +
				'}';
	}







}
